home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / pc_pad.arc / DEMOPAD < prev    next >
Encoding:
Text File  |  1983-07-29  |  14.9 KB  |  79 lines

  1. *->    PC\PAD.............DEMO FILE..........TOP LEFT PAGE                     +---------------+---------------+  On the left is the standard control table for                      We have now discussed BASIC editing, window movement, and             <-*
  2.                                                                                | Row/Column Instructions:      |  spreadsheet instruction program ROWCOL.BAS.                   text manipulation.  The remaining topics are programming of the
  3.     Welcome  to PC\PAD.  As indicated on the data line at bottom,              |1st Cell Line #:        10     |  Its contents, as set by you, tell the program                 wordsheet, and disk/printer output.  Because PC\PAD allows
  4. you are looking at a copy of lines 0-22 and columns  0-4  of  the              |1st Cell Col. #:         6     |  what row/col totals to form.  It presently                    programming of the wordsheet in a high-level language (BASIC),
  5. DEMOPAD  wordsheet.   On  first  encounter,  you  should find the              |Number of Lines:        10     |  points to the Table below.  To test, press                    the possibilities (for example for the wordsheet to carry on a
  6. blinking double-underline cursor located in the upper left corner              |Number of Col's:         2     |  [F2], and type: rowcol to the filename                        dialog with you, or even to coordinate a treasure hunt across
  7. of the screen.  The first thing to do is to move it around on the              +---------------+---------------+  prompt.  This sets up the row/col sums and                    its expanse) are probably larger than with a conventional
  8. screen, using the arrow keys on the right hand side of  the  key-                                                                                allows you to                  spreadsheet.  Because the speed of a response is probably slower,
  9. board.   If  you  mess  up  the screen (this can be done with the               Income Worksheet       Mr. Jones      Mrs. Jones▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  update those                   the programmed instructions (say to update a set of row/column
  10. cursor keys by running off the right edge of the  screen),  don't              +---------------+---------------+---------------+---------------+ sums based on                  totals) are only invoked upon request, by pressing [F2], the
  11. worry.   As long as you don't press Enter (which loads the cursor              |     Net Salary|          10302|           8168|░░░░░░░░░░░░░░░| any new column                 Computation function.
  12. screen line back into the working file), you can recover the  old              |       FICA tax|           3667|           2311|░░░░░░░░░░░░░░░| entries in the                      When [F2] is first pressed, the filename for the
  13. screen  by  pressing the [F1] key on the upper left corner of the              | Witholding tax|           6211|           4211|░░░░░░░░░░░░░░░| future just by                 instruction program (which will be chain-merged into lines
  14. keyboard (the View window function).                                           |Interest Income|            121|             22|░░░░░░░░░░░░░░░| pressing [F2]                  10000...) is requested.  A prototype program (ROWCOL.BAS)
  15.     To review what other function keys do,  press  backslash  and              |      Dividends|              4|             54|░░░░░░░░░░░░░░░| again.                         which reads numbers from column 6, lines 2-5 of the wordsheet
  16. then  [F1],  as  indicated  on  the  data line below.  These [F1]              |Business Income|             45|              0|░░░░░░░░░░░░░░░|                                to decide which row/column sums to form, is setup to the left
  17. functions, as well as the window movement  key  functions  (using              |     Yard Sales|              0|             26|░░░░░░░░░░░░░░░|   When you are                 in columns 5-9.  To get there, figure out which function key
  18. [F3] through [F6]), make no file changes and hence can be invoked              |          Poker|              0|            266|░░░░░░░░░░░░░░░| finished here,                 will move you left (look at the keylist below, or use \[F1]).
  19. freely when needed.  The data line below will keep  you  informed              |          Bingo|            -32|              0|░░░░░░░░░░░░░░░| follow the                     The trip requires you to move 11 half-columns left.
  20. concerning the file location of the current window on screen.                  | Football Pools|              0|             45|░░░░░░░░░░░░░░░| dotted line                    ==================================================================
  21.                                 |                                              |▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓|░░░░░░░░░░░░░░░|░░░░░░░░░░░░░░░|░░░░░░░░░░░░░░░| for more........          /------>   If you can now see the asterisk and arrow in the upper
  22.          For example, press backslash and then [F4]...                         +---------------+---------------+---------------+---------------+                 .         |    right corner of the screen, then the DEMO continues at the top of
  23.                                 |                                                                                                                                 .        |    this screen.  If not, another backslash [F3] should get you there.
  24.      Voila!   Your  window  onto  the wordsheet has moved down 20                                                                                                  .       |
  25. lines.                                                                                                                                                              .      |
  26. ===================The BASIC editing functions===================                                                                                                    .     \-------------------------\
  27.      Many  modifications  to  the  file itself can be carried out                                                                                                     .                              |
  28. using  the  BASIC editor commands, documented on pp. 2-13 through                                                                                                      ...................................
  29. 2-31  of  the  IBM  BASIC  Manual  (2nd  Edition, ver. 1.1).  For                                                                                                                                    |    .
  30. example,  move the cursor down to each of the following lines and                                                                                                                                    |     .
  31. do as suggested, pushing Enter after each line change.                                                                                     /-> So far so good.  Let's continue this movement up      |      .
  32.                                                                                                                                            |   and right by again pressing backslash [F3] and        |      .
  33.      Dear ___, insert your name after the word "Dear".                                                                                     |   backslash [F6].  Ignore the dotted line, and follow   |      .
  34.                                                                                                                                            |   the dashed one.---------------------------------------/      .
  35.      Delete the #%!@$*&! expletive in this sentence.                                                                                       |                                                                .
  36.                                                                                                                                            |                                                                .
  37.      Place 2 dots over this letter o using the Alt-148 sequence.                                                                           |                                                                .
  38.                                                                                                                                            |                                                                .
  39. As  mentioned  in  section  IV of PC\PAD.DOC, one ASCII character                                                                          |                                                                .
  40. (nominally "\") is assigned control character status.  The  first                                                                          |                                                                .
  41. (and  only  first) backslash occurring in an Entered line is fair                                                                         /                                                                 .
  42. game as part of a command, so their use in text requires care.                                                                           /                                                                  .
  43.          ...Press backslash, [F4] again to continue...                                                                                  /                                            The backslash [F2] key allows to you alter 2 important filenames:
  44. A  whole  zoo of other functions, mostly for cursor movement, are                                                                      /                                        the working filename for disk output (shown on the data line below)
  45. also available through the BASIC editor.                                                                                              /                                         and the filename for the spreadsheet instruction program.  After [F2]
  46.                                                                                                                                      /                                          is pressed, the prompt lists the present name for each file.  A return
  47. =======================Programmed Functions======================                                                                   /                                           (or Enter) will leave that name unchanged.  Use that option now to set
  48.      Move the cursor to the line above, press [F7],return (Yank),                                                                  /                                            the working filename to something other than demopad (e.g. demopad.j),
  49. then [F8] (Put).  Note that you have a way to replicate the line.                          /-->     Here you are, now moving away from                                          so that we don't copy over the original DEMOPAD file if we hit [F10].
  50. In fact, you can move the cursor to any place  on  the  wordsheet                          |    the left edge of the word sheet.  Notice                                             Once this is done, it is safe to press the [F10] (Save) key.
  51. and insert a copy of that line!                                                            |    on the location listings below that you                                         Clicking of the disk drive should tell you that a magnetic copy is
  52.      To  get  rid  of  extra copies of that line, press backslash                          |    are viewing columns 4-8, and not columns                                        being made, under the filename set above.
  53. [F7],return  (Destructive  Yank/Delete) on each.  Just like that,                          |    0 to 4 as has previously been the case.                                              If you have an IBM printer (protocols are set for the one without
  54. they go away.  Deleted lines are stored in the Put memory, also.                           |    Let`s continue this process, by again                                           GRAFTRAX, although it may make no difference), you can also test the Print
  55.      To  add  text,  for example above this line, move the cursor    Note:                 |    pressing backslash [F3] and backslash [F6],                                     routine (backslash+[F10]) with this file.  To print the whole wordsheet
  56. there  and press backslash [F8] (Line-Insert).  Almost magically,   You may                ^    thus following the dashed diagonal line.                                        requires 2 passes.  To print the left half, answer all questions with
  57. the  cursor splits into two, opening up an insertion line.  While   need to                |                                                                                    return (Enter) except for characters/inch, to which you should respond
  58. the  cursor  is  so split, you can only add text on the insertion   use [F4]               |                                                                                    with s (for small).  To print the right half, do likewise except also
  59. line.  You  can  also continue to Enter line after line until the   to put                /                                                                                     specify 8 (instead of the assumed 0) after "columns from:".  This
  60. addition  is  complete.   Invoking  any  of  the other programmed   new text             /                                                                                      will print columns 8 to 15 instead of columns 0 to 7.
  61. functions  (such  as  [F1]) will close up the present (unEntered)   up on               /                                                                                            Please look over the more systematic documentation in file PC\PAD.DOC
  62. insertion line, and return to you full-screen editing ability.      screen.            /                                                                                        as well.  When you are done roaming around on the wordsheet, you can
  63.                                                                                                                                                                                 return to the Disk File Menu by pressing backslash twice, q, & Enter.
  64.      Finally, to make the right-margin here line
  65. up with those of the other paragraphs, move the cursor to the first line
  66. in this paragraph, and press [F9] (Justify).  To the questions at the
  67. bottom of the screen, reply 65,Enter,Enter.  This sets a 65 character
  68. linewidth, and requests that only one line be justified at a time.
  69. The first line should at that time be rearranged to take up 65 characters.
  70. Continue with the remaining lines in the paragraph.  The
  71. instructions to Justify can be changed at any time by pressing
  72. backslash [F9].
  73.  
  74.      To  continue  with the DEMO, we now require 4 keystrokes: to
  75. move  up  and  right  on  the wordsheet, press backslash [F3] and
  76. backslash [F6].
  77.  
  78. e DEMO, we now require 4 keystrokes: to
  79. move  up  and  right  on  the